package com.geline.word.starter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

/**
 sdk-word:
    root-path: ${user.dir}/files/
    url-header: http://localhost:9501
 * @author: mengxin
 * @date: 2022/10/20 9:35
 */
@Validated
@ConfigurationProperties(prefix = "sdk-word")
public class SdkWordProperties {

    //文件上传根目录
    @NotEmpty(message = "sdk-word.rootPath不可为空")
    private String rootPath;

    //文件访问地址
    @NotEmpty(message = "sdk-word.urlHeader不可为空")
    private String urlHeader;

    public String getRootPath() {
        return rootPath;
    }

    public void setRootPath(String rootPath) {
        this.rootPath = rootPath;
    }

    public String getUrlHeader() {
        return urlHeader;
    }

    public void setUrlHeader(String urlHeader) {
        this.urlHeader = urlHeader;
    }
}
